package com.zjb.zjbHome.controllers.pc;

import com.jfinal.core.Controller;
import com.zjb.zjbHome.model.model.Url;

public class zjbHomeController extends Controller {
	
	public void index() {
		this.renderJsp("zjbHome.html");
	}
	
	public boolean add() {
		String urlName = this.getPara("urlName");
		String url = this.getPara("url");
		String introduce = this.getPara("introduce");
		
		int id = Url.dao.add(urlName, url, introduce);
		this.renderJson(id);
		return true;
	}
	
}
